<center>
<?php include "scripts/connectDB.php";

$result = mysql_query("SELECT * FROM news,users WHERE news.user_id = users.user_id ORDER BY news_id DESC");



while($row = mysql_fetch_array($result))
  {
  echo "<table class='contenttable' cellpadding='0' cellspacing='0'>";
  echo "<tr>";
  echo "<td class='tdcontenttop'>";
  
  echo "<table width='409px' cellpadding='0' cellspacing='0'>";
  echo "<tr>";
  echo "<td width='136'>" . "<span class='left'>Nr.". $row['news_id'] . "</span>" . "</td>";
  echo "<td width='137'>" . "<center>" . $row['topic'] . "</center>" . "</td>";
  echo "<td width='136' class='right'>" . "<span class='mright'>Author:" . $row['username'] . "</span>" . "</td>";
  echo "</tr>";
  echo "</table>";
   
  echo "</td>";
  echo "</tr>";
  echo "<tr>";
  echo "<td class='tdcontentmiddle'>" . "<div class='left'>" . $row['news'] . "</div>" . "</td>";
  echo "</tr>";
  echo "<tr>";
  echo "<td class='tdcontentbottom'>" . "<span class='left'>" . $row['date'] . "</span>" . "</td>";
  echo "</tr>";
  echo "</table>";
  }


mysql_close($con);
?>

</center>